import request from '@/utils/request'

// 查询批量发货列表
export function listPiliangfahuo(query) {
  return request({
    url: '/piliangfahuo/piliangfahuo/list',
    method: 'get',
    params: query
  })
}

// 查询批量发货详细
export function getPiliangfahuo(deliveryId) {
  return request({
    url: '/piliangfahuo/piliangfahuo/' + deliveryId,
    method: 'get'
  })
}

// 新增批量发货
export function addPiliangfahuo(data) {
  return request({
    url: '/piliangfahuo/piliangfahuo',
    method: 'post',
    data: data
  })
}

// 修改批量发货
export function updatePiliangfahuo(data) {
  return request({
    url: '/piliangfahuo/piliangfahuo',
    method: 'put',
    data: data
  })
}

// 删除批量发货
export function delPiliangfahuo(deliveryId) {
  return request({
    url: '/piliangfahuo/piliangfahuo/' + deliveryId,
    method: 'delete'
  })
}
